package com.qq.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.qq.service.impl.FriendshipServiceImpl;

@WebServlet("/insertFriend.do")
public class InsertFriendServlet extends HttpServlet{
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		String myAccount = req.getParameter("myAccount");
		String friendAccount = req.getParameter("friendAccount");
		FriendshipServiceImpl fs = new FriendshipServiceImpl();
		int i = fs.insertFriendByAccount(myAccount, friendAccount);
		
	}
}
